import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index/Index'
import Home from '@/components/home/Home'
import Brand from '@/components/brand/Brand'
import Classic from '@/components/classic/Classic'
import Groupbuying from '@/components/groupbuying/Groupbuying'
import Mine from '@/components/mine/Mine'
import Groupcar from '@/components/groupcar/Groupcar'
import Goodsdetails from '@/components/goodsdetails/Goodsdetails'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: Index
    },
    {
      path: '/home',
      name: 'home',
      component: Home
    },
    {
      path: '/brand',
      name: 'brand',
      component: Brand
    },
    {
      path: '/classic',
      name: 'classic',
      component: Classic
    },
    {
      path: '/groupbuying',
      name: 'groupbuying',
      component: Groupbuying
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine
    },
    {
      path: '/groupcar',
      name: 'groupcar',
      component: Groupcar
    },
    {
      path: '/goodsdetails',
      name: 'goodsdetails',
      component: Goodsdetails
    }
  ]
})
